package com.hutiao.snowhb.wechat.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import com.hutiao.snowhb.wechat.vo.WxRecvEventUnsubscribe;
import com.hutiao.snowhb.wechat.vo.WxRecvMsg;

public class WxRecvEventUnsubscribeParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		String event = getElementText(root, "Event");
		
		return new WxRecvEventUnsubscribe(msg, event);
	}

}
